import { defineStore } from "pinia";

type NavItem = {
  path: string;
  key: string;
  label: string;
};
export const useNavStore = defineStore("nav", () => {
  const navItems: NavItem[] = [
    { path: "/index", key: "index", label: "首页" },
    { path: "/category", key: "category", label: "文章分类" },
    { path: "/archiving", key: "archiving", label: "文章归档" },
    { path: "/about", key: "about", label: "关于我" },
  ];
  function getNav() {
    return navItems;
  }

  return {
    getNav,
  };
});
